package com.pinda.feign;

import com.pinda.auth.entity.PdAuthUser;
import com.pinda.auth.entity.PdCoreOrg;
import com.pinda.auth.view.DriverView;
import com.pinda.commonutils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "auth-service",url = "http://localhost:2002")

public interface PdAuthFeignClient {
    @PostMapping("/pd_auth_user/driverLogin")
    Result<DriverView> driverLogin(@RequestBody PdAuthUser pdAuthUser);

    @GetMapping("/pd-core-org/latitudeAndLongitude/{id}")
    PdCoreOrg latitudeAndLongitude(@PathVariable("id") String id);
}
